package com.unknowpupil.web.base.common;

import com.unknowpupil.web.base.enums.ErrorCodeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @Classname: ResponseResult
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2019/10/23 9:27
 * @Description:
 * @Version: 1.0
 */
@ApiModel(description = "响应结果")
public class ResponseResult<T> implements Serializable {


    private static final long serialVersionUID = 8992436576262574064L;

    private Integer code;

    private String msg;

    private T result;

    private Long timestamp;

    @ApiModelProperty(value = "状态码")
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @ApiModelProperty("调用结果消息")
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @ApiModelProperty("成功时响应数据")
    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }


}
